<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
  <meta name="generator" content="notepad">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="description" content="<?php echo input(strip_tags($conf['Pavadinimas']).' - '.trimlink(strip_tags($conf['Apie']),120)); ?>">
  <meta name="keywords" content="<?php echo input(strip_tags($conf['Keywords'])); ?>">
  <meta name="author" content="<?php echo input(strip_tags($conf['Copyright'])); ?>">
  <link rel="stylesheet" type="text/css" href="stiliai/<?php echo input(strip_tags($conf['Stilius'])); ?>/default.css">
  <link rel="stylesheet" type="text/css" href="stiliai/system.css">
  <link rel="shortcut icon" href="favicon.ico" />
  
  <title><?php echo input(strip_tags($conf['Pavadinimas']).' - '.$page); ?></title>
  
  <script language="javascript" type="text/javascript" src="javascript/swfobject.js"></script>
  <script language="javascript" type="text/javascript" src="javascript/scriptaculous/lib/prototype.js"></script>
  <script language="javascript" type="text/javascript" src="javascript/scriptaculous/src/scriptaculous.js"></script>
  <script language="javascript" type="text/javascript" src="javascript/pagrindinis.php"></script>
  
  <?php if ($id == 46 || $id == 8) { ?>
  <script language="javascript" type="text/javascript" src="javascript/htmlarea/tiny_mce/tiny_mce.js"></script>
  <?php } ?>
</head>

<body>
<NOSCRIPT>
 <?php klaida("Klaida","Prašome įjunkite javascript palaikymą"); ?>
 <meta http-equiv="refresh" content="0;url=javascript.html">
</NOSCRIPT>

<script language="javascript" type="text/javascript" src="javascript/hl/shCore.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushPhp.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushJScript.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushSql.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushXml.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushCss.js"></script>

<table style="text-align: left; width: 90%;" border="0" cellpadding="0" cellspacing="0" align="center">
  <tbody>
    <tr>
      <td colspan="1" rowspan="2" class="sonas" valign="top">
      <h1>CodeRS</h1><a href="?"><img src="stiliai/<?php echo input($conf['Stilius']);?>/images/logo.png" alt="<?php echo $conf['Pavadinimas'];?>" title="<?php echo $page;?>" border="0" /></a><br /><br />
			<?php
			$sql_p = mysql_query1("SELECT SQL_CACHE * FROM `".LENTELES_PRIESAGA."panel` ORDER BY `place` ASC");
			while ($row_p = mysql_fetch_assoc($sql_p)) {
				if (is_file("paneles/".$row_p['file'])) { 
				include ("paneles/".$row_p['file']);
					if (!isset($title)) { $title = $row_p['panel']; }
					if ($row_p['show'] == 'Y' && isset($text) && !empty($text)) {
						lentele_l($title,$text); unset($title,$text);
					}
					elseif (isset($text) && !empty($text)) { 
						echo $text;
						unset($text);
					}
				}
				else { echo lentele_l("Klaida","Tokios paneles nera",$row_p['file']); }
			}
			unset($sql_p,$row_p);
			?>
		</td>
    </tr>
    <tr valign="top">
      <td class="main" style="height: 100%;" height="100%">
      <!-- <div class="title" style="background-color: transparent; color: Black; float: right; font-weight: normal;">Šiuo metu svetainėje: <?php echo $online;?></div> -->
			<div id="tabsJ">
			<ul>
				<li <?php echo (!isset($url['id']))?'id="current"':''; ?>><a href="?"><span>Titulinis</span></a></li>
				<li <?php echo (isset($url['id']) && $url['id']==7)?'id="current"':''; ?>><a href="?id,7"><span>KodeBin</span></a></li>
				<li <?php echo (isset($url['id']) && $url['id']==6)?'id="current"':''; ?>><a href="?id,6"><span>Siųstis</span></a></li>
				<li <?php echo (isset($url['id']) && $url['id']==22)?'id="current"':''; ?>><a href="?id,22"><span>Straipsniai</span></a></li>
				<li <?php echo (isset($url['id']) && $url['id']==25)?'id="current"':''; ?>><a href="?id,25"><span>Forumas</span></a></li>
			</ul>
			<br/>
			</div>
		<div class="vidus">
		<?php
			if (!isset($_SESSION['username'])) {
			 	lentele($conf['Pavadinimas'],$conf['Apie']);
			}
			include($page.".php");
		?>
		</div>
      </td>
    </tr>
  </tbody>
</table>
<hr />
<?php
copyright($conf['Copyright']);
?>